<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Worker_model extends MY_Model {
	
	public function __construct(){
		parent::__construct();	
		$this->setTableName('u_c_worker');
	}
	
	public function allWorker(){
		$re = $this->select('classid,name','classid!=1');
		return $re;
	}
	
	public function login($name,$password){
		//echo $name;
		//echo $password;
		$re = $this->select('classid',"name='{$name}' AND password='{$password}'");
		return $re;
	}
	
}
?>